<?php

/**
 * Income form.
 *
 * @package    form
 * @subpackage Income
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class IncomeForm extends TransactionForm
{
  public function configure()
  {
    unset($this['expense'],$this['account_id']);
    $this->validatorSchema['income'] = new sfValidatorNumber(array('required' => true));
    $this->validatorSchema['income_account_id'] = new sfValidatorDoctrineChoice(array('model' => 'IncomeAccount', 'required' => true));
  }
}

